/**
 * Clase Personne
 */
package perso;

public class Personne {

	private String nom;
	private int age;

	/**
	* Constructor
	* @param	nom	name of the personne to be created
	* @param	int	age of the personne to be created
	*/
	public Personne(String nom, int age) {
		this.nom = nom;
		this.age = age;
	}

	/**
	* Getter of the name of the current Personne object
	* @return	nom	name of the personne
	*/
	public String getNom() {
		return this.nom;
	}

	/**
	* Setter of the name of the current Personne object
	* @param	val	name of the personne
	*/
	public void setNom(String val) {
		this.nom = val;
	}

	/**
	* Getter of the age of the current Personne object
	* @return	age	age of the personne
	*/
	public int getAge() {
		return this.age;
	}

	/**
	* Setter of the age of the current Personne object
	* @param	val	age of the personne
	*/
	public void setAge(int val) {
		this.age = val;
	}

	/**
	* Redifinition of the toString class
	* @return 			the String representing the Object
	*/
	public String toString() {
		return this.nom + " tiene " + this.age + "anos. ";
	}
}